package cn.gameo2o.service.lcgl.impl;
import java.util.List;
import java.util.Map;
import cn.gameo2o.dao.lcgl.LiuChengGuanLiDAO;
import cn.gameo2o.pojo.O2o_play;
import cn.gameo2o.pojo.O2o_playflow;
import cn.gameo2o.service.lcgl.LiuChengGuanLiService;
import cn.gameo2o.util.PageParam;

/**
 * 流程管理实现
 * @author 王振勇
 *
 */
public class LiuChengGuanLiServiceImpl implements LiuChengGuanLiService {
 
	private LiuChengGuanLiDAO dao1;
	
	public O2o_playflow findById(Integer gameid) {
		// TODO Auto-generated method stub
		return dao1.findById(gameid);
	}
	public List<O2o_playflow>  find(Map<String, Object> params, PageParam page) {
		// TODO Auto-generated method stub
		 Long count = dao1.count(params);
	     page.setTotal(count);
	     page.setRows(dao1.find(params,page.getFirst(),page.getPageSize()));
	     return dao1.find(params, page.getFirst(), page.getPageSize());
		
	}
	public int save(O2o_play play) {
		// TODO Auto-generated method stub
		return dao1.save(play);
	}

	public int update(O2o_play play) {
		// TODO Auto-generated method stub
		return dao1.update(play);
	}
	public int Delete(int playid) {
		// TODO Auto-generated method stub
		return dao1.Delete(playid);
	}
	
}
